package com.jsu.clubmanagementsystem.common;

import lombok.Data;

import java.io.Serializable;

/**
 * 自定义 统一响应体
 * @param <T>
 */
@Data
public class  BaseResponse<T> implements Serializable {
    /**
     * 返回数据
     */
    private T data;

    /**
     * 状态码
     */
    private int code;

    /**
     * 响应信息
     */
    private String message;

    public BaseResponse(T data, int code, String message){
        this.data = data;
        this.code = code;
        this.message = message;
    }
}
